package sky.service;

import sky.domain.Flight;
import sky.exceptions.bookTicketException;
import sky.tro.TicketFinder;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 24.04.13
 * Time: 17:07
 * To change this template use File | Settings | File Templates.
 */
public interface FlightService {
    public void addFlight(Flight flight);

    public List<Flight> listFlight();

    public List<Flight> sortingList(String sortParam);

    public void removeFlight(Integer id);

    public List<Flight> FindByFinder(TicketFinder finder, String sortStr, String ticketType);

    public Flight getFlightById(Integer id);

    public void editFlight(Flight flight);

    public void bookTickets(Integer id, Integer numberOfTickets, String ticketType);
}
